

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 7.00.0555 */
/* at Sat Dec 19 05:19:58 2009
 */
/* Compiler settings for .\main\MiniBasic.idl:
    Oicf, W3, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555 
    protocol : dce , ms_ext, c_ext, robust
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING(  ) */

#pragma warning( disable: 4049 )  /* more than 64k source lines */


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __MiniBasic_h_h__
#define __MiniBasic_h_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __IMiniBasic_FWD_DEFINED__
#define __IMiniBasic_FWD_DEFINED__
typedef interface IMiniBasic IMiniBasic;
#endif 	/* __IMiniBasic_FWD_DEFINED__ */


#ifndef __MiniBasicImpl_FWD_DEFINED__
#define __MiniBasicImpl_FWD_DEFINED__

#ifdef __cplusplus
typedef class MiniBasicImpl MiniBasicImpl;
#else
typedef struct MiniBasicImpl MiniBasicImpl;
#endif /* __cplusplus */

#endif 	/* __MiniBasicImpl_FWD_DEFINED__ */


/* header files for imported files */
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 


/* interface __MIDL_itf_MiniBasic_0000_0000 */
/* [local] */ 

#define	epMemoryAreaDefault	( ( 128 * 1024 )  )

typedef struct _ExecutionParameters
    {
    BSTR pathToFile;
    SIZE_T memoryAreaSize;
    VARIANT_BOOL keepConsoleOpen;
    } 	ExecutionParameters;



extern RPC_IF_HANDLE __MIDL_itf_MiniBasic_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_MiniBasic_0000_0000_v0_0_s_ifspec;

#ifndef __IMiniBasic_INTERFACE_DEFINED__
#define __IMiniBasic_INTERFACE_DEFINED__

/* interface IMiniBasic */
/* [version][unique][oleautomation][uuid][dual][object] */ 


EXTERN_C const IID IID_IMiniBasic;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("57DF484B-7FF3-45bc-ACA7-417E0577DDB7")
    IMiniBasic : public IDispatch
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ExecuteFile( 
            /* [in] */ ExecutionParameters *pExParams) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ExecuteFileAsync( 
            /* [in] */ ExecutionParameters *pExParams,
            /* [retval][out] */ UINT_PTR *hWaitable) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ExecuteString( 
            /* [in] */ ExecutionParameters *pExParams,
            /* [in] */ SAFEARRAY * codeString,
            VARIANT_BOOL hasTextLineNumbers) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct IMiniBasicVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IMiniBasic * This,
            /* [in] */ REFIID riid,
            /* [annotation][iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IMiniBasic * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IMiniBasic * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IMiniBasic * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IMiniBasic * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IMiniBasic * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IMiniBasic * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ExecuteFile )( 
            IMiniBasic * This,
            /* [in] */ ExecutionParameters *pExParams);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ExecuteFileAsync )( 
            IMiniBasic * This,
            /* [in] */ ExecutionParameters *pExParams,
            /* [retval][out] */ UINT_PTR *hWaitable);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ExecuteString )( 
            IMiniBasic * This,
            /* [in] */ ExecutionParameters *pExParams,
            /* [in] */ SAFEARRAY * codeString,
            VARIANT_BOOL hasTextLineNumbers);
        
        END_INTERFACE
    } IMiniBasicVtbl;

    interface IMiniBasic
    {
        CONST_VTBL struct IMiniBasicVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define IMiniBasic_QueryInterface(This,riid,ppvObject)	\
    ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) 

#define IMiniBasic_AddRef(This)	\
    ( (This)->lpVtbl -> AddRef(This) ) 

#define IMiniBasic_Release(This)	\
    ( (This)->lpVtbl -> Release(This) ) 


#define IMiniBasic_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define IMiniBasic_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define IMiniBasic_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define IMiniBasic_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#define IMiniBasic_ExecuteFile(This,pExParams)	\
    ( (This)->lpVtbl -> ExecuteFile(This,pExParams) ) 

#define IMiniBasic_ExecuteFileAsync(This,pExParams,hWaitable)	\
    ( (This)->lpVtbl -> ExecuteFileAsync(This,pExParams,hWaitable) ) 

#define IMiniBasic_ExecuteString(This,pExParams,codeString,hasTextLineNumbers)	\
    ( (This)->lpVtbl -> ExecuteString(This,pExParams,codeString,hasTextLineNumbers) ) 

#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IMiniBasic_INTERFACE_DEFINED__ */



#ifndef __MiniLib_LIBRARY_DEFINED__
#define __MiniLib_LIBRARY_DEFINED__

/* library MiniLib */
/* [version][uuid] */ 


EXTERN_C const IID LIBID_MiniLib;

EXTERN_C const CLSID CLSID_MiniBasicImpl;

#ifdef __cplusplus

class DECLSPEC_UUID("8326F99E-573A-4d9c-9C29-56AB626D938A")
MiniBasicImpl;
#endif
#endif /* __MiniLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long *, unsigned long            , LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long *, unsigned char *, LPSAFEARRAY * ); 
unsigned char * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY * ); 
void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long *, LPSAFEARRAY * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


